using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MSRI.HelperClasses;
using Instedd.Labs.Geo.Library.Kml;
using Mvp.Xml.Common.Xsl;
using System.Xml;
using System.IO;
using System.Xml.Xsl;
using System.Collections.Specialized;
using Instedd.Labs.Geo.Library.Kml.Styles;

namespace Instedd.Labs.Geo.Library.Tests.Model
{
    /// <summary>
    /// Summary description for UnitTest1
    /// </summary>
    [TestClass]
    public class ColorFixture
    {
        public ColorFixture()
        { }

        [TestMethod]
        public void OpacityPercentAndColorComponentReturnsKmlColorFormatAABBGGRR()
        {
            Color color = new Color(0.7, 0xb, 0x5a, 0xcc);

            Assert.AreEqual("B2CC5A0B", color.ToString());
        }

        [TestMethod]
        public void NormalizedAndNotNormalizardPercentValueReturnTheSameOpacityValue()
        {
            Color colorWithNormalizedOpacityValue = new Color(0.75, 0x0, 0x0, 0x0);
            Color colorWithoutNormalizedOpacityValue = new Color(75, 0x0, 0x0, 0x0);

            Assert.AreEqual(colorWithNormalizedOpacityValue.ToString(), colorWithoutNormalizedOpacityValue.ToString());
        }
    }
}